package com.eastfair.certificate.vo;

import com.eastfair.demand.certificate.CertificateOrderGroup;
import com.eastfair.vo.BaseVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.eastfair.certificate.enumeration.CertificateAuthAuthSystemEnum;
import com.eastfair.certificate.enumeration.CertificateAuthClassifyEnum;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 证件审核表
 * </p>
 *
 * @author ligang
 * @since 2022-07-22
 */
@Data
@ApiModel(value = "CertificateAuthVO", description = "证件审核表")
public class CertificateAuthVO extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 审核分类:#{ARRANGE:初审;ARRANGE:二审;MOVEOUT:终审;}
     */
    @ApiModelProperty(value = "审核分类:#{ARRANGE:初审;ARRANGE:二审;MOVEOUT:终审;}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private CertificateAuthClassifyEnum classify;
    /**
     * 审核方:#{COURT:主场系统;CERTIFICATE:制证系统;}
     */
    @ApiModelProperty(value = "审核方:#{COURT:主场系统;CERTIFICATE:制证系统;}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private CertificateAuthAuthSystemEnum authSystem;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long tenantId;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long subsystemId;

    /**
     * 是否选中
     */
    @ApiModelProperty(value = "是否选中")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Boolean isCheck;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @VoInfo(groups = {CertificateOrderGroup.all.class})
    protected LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @VoInfo(groups = {CertificateOrderGroup.all.class})
    protected LocalDateTime updateTime;

}
